<template>
  <div class="app">
    <AppHeader />
    <div class="app-main">
      <AppSidebar />
      <main class="app-content">
        <router-view />
      </main>
    </div>
    <AppFooter />
  </div>
</template>

<style scoped>
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-main {
  display: flex;
  flex: 1;
}

.app-sidebar {
  flex: 0 0 200px; /* 确保侧边栏宽度为200px */
}

.app-content {
  flex: 1;
  padding: 30px;
  text-align: center;
}

.app-footer {
  margin-top: auto;
}
</style>
